#include "widget.h"
#include <QFile>
#include <QApplication>
#include <dialog_login.h>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QString path = QCoreApplication::applicationDirPath();
    QFile qss(path+"/type.qss");

    Dialog_Login dl;
    if(qss.open(QFile::ReadOnly)){
        qApp->setStyleSheet(qss.readAll());
    }
    Widget w;
    if(dl.exec() == QDialog::Accepted)
    {
        w.show();
    }
//    w.show();
    return a.exec();
}
